/**
 * 播放初始化导览
 */
export const playInitAnimation = async (type = AnimationType.Initialization) => {
    const res: any = await __g.camera.getAnimationList()
    const nameArr = ['初始化', '地形初始化']
    const obj = res.data.filter((item: any) => item.name == nameArr[type])
    await __g.camera.playAnimation(obj[0].id)
}

/**
 * 导览名字枚举
 */
export enum AnimationType {
    /**
     * 城市孪生 初始化
     */
    Initialization = 0,
    /**
     * 地形初始化
     */
    TerrainInitialization = 1
}
